import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/home/Home.vue'



const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/region',
      name: 'region',
      component: () => import('../views/region/Region.vue')
    },
    {
      path: '/case',
      name: 'case',
      component: () => import('../views/case/Case.vue')
    },
    {
      path: '/push',
      name: 'push',
      component: () => import('../views/push/Push.vue')
    },
    {
      path: '/message',
      name: 'message',
      component: () => import('../views/message/Message.vue')
    },
    {
      path: '/account',
      name: 'account',
      component: () => import('../views/account/Account.vue')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/Login.vue')
    },
    {
      path: '/admin',
      name: 'admin',
      component: () => import('../views/admin/ManagerView.vue'),
      children:[
          {
            path: 'file-management',
            component:() => import('../views/admin/FileManagement.vue')
          },
      ]
    },
  ]
})

export default router
